package com.b.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.b.dao.LikeRecordMapper;
import com.b.domain.LikeRecord;
import com.b.service.LikeRecordService;

import jakarta.annotation.Resource;
@Service
public class LikeRecordServiceImpl implements LikeRecordService{

    @Resource
    private LikeRecordMapper likeRecordMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return likeRecordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(LikeRecord record) {
        return likeRecordMapper.insert(record);
    }

    @Override
    public int insertSelective(LikeRecord record) {
        return likeRecordMapper.insertSelective(record);
    }

    @Override
    public LikeRecord selectByPrimaryKey(Integer id) {
        return likeRecordMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(LikeRecord record) {
        return likeRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(LikeRecord record) {
        return likeRecordMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<LikeRecord> getAll() {
        return likeRecordMapper.getAll();
    }
}
